package com.coffee.tenant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;
import java.util.Set;

/**
 * 多租户配置
 * @author songkui
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "mybatis-plus.tenant")
public class CoffeeTenantConfigProperties {

	/**
	 * 是否开启 多租户；true 开启;  false  关闭
	 */
	private boolean enabled = true;

	/**
	 * 维护租户列名称
	 */
	private String column = "tenant_id";

	/**
	 * 忽略多租户的数据表集合
	 */
	private Set<String> ignoreTables = Collections.emptySet();

}
